Gosu ruby windows no allocator for Image [on hold]

Posted by user2812818 on Game Development See other posts from Game Development or by user2812818
Published on 2013-10-31T01:49:04Z Indexed on 2013/10/31 4:22 UTC
Read the original article Hit count: 263

Filed under:

I am trying to run the Gosu tutorial on Windows XP for ruby 1.93

It quits with `new': allocator undefined for Gosu::Image (TypeError) when trying to initialize a new Image:

require 'gosu'
require 'rubygems'
  class GameWindow < Gosu::Window
    def initialize
      super(640, 480, false)
      self.caption = "Gosu Tutorial Game"

      @background_image = Gosu::Image.new(self, "/media/123.bmp", true)

      end
  end

I made sure the image is there and is png/bmp. I know it is something simple, maybe to do with the DLL's required? just not sure what....

thanks

sgv

© Game Development or respective owner

Related posts about ruby